<template>
  <home></home>
</template>
<script>
import Home from './ComponentB.vue'
export default
    {
    data() {
        return {
            name: "james",
            age:32,
            message: "消息",
        }
    },
    components: {
      Home  
    },

    //provide写成实例方法的形式
    provide()
    {
      return {
          name: this.name,
          age: this.age,
          message:this.message
       }    
    }
        
    }
</script>
<style scoped>
</style>